<?php
C_base::yn_file('m'.DS.'Model.php');
class fankuiModel extends model{
/*******************************投诉表操作********************************/
	function tousu_ss($w){//查询多条
		return $this->tousu()->w($w)->ss();
	}
	
	function tousu_s($w){//查询单条
		return $this->tousu()->w($w)->o('id')->s();
	}
	
	function tousu_c($w){//写入
		return $this->tousu()->c($w);
	}
	
	function tousu_u($w,$u){//修改
		return $this->tousu()->w($w)->u($u);
	}
/*******************************建议表操作********************************/
	function jianyi_ss($w){//查询多条
		return $this->jianyi()->w($w)->ss();
	}
	
	function jianyi_s($w){//查询单条
		return $this->jianyi()->w($w)->o('id')->s();
	}
	
	function jianyi_c($w){//写入
		return $this->jianyi()->c($w);
	}
	
	function jianyi_u($w,$u){//修改
		return $this->jianyi()->w($w)->u($u);
	}
/*******************************管理员表操作********************************/
	function kfadmin_s($w){//查询单条
		return $this->kfadmin()->w($w)->s();
	}
	
	function kfadmin_ss(){//查询单条
		return $this->kfadmin()->ss();
	}
	
	function kfadmin_c($c){//写入
		return $this->kfadmin()->c($c);
	}
	
	function kfadmin_u($w,$u){//修改
		return $this->kfadmin()->w($w)->u($u);
	}
	
	function kfadmin_d($w){
		return $this->kfadmin()->w($w)->d();
	}
/*******************************数据库************************************/
	function kfadmin(){
		return $this->db_kf()->user;
	}
	
	function tousu(){//投诉表
		return $this->db_kf()->tousu;
	}
	
	function jianyi(){//建议表
		return $this->db_kf()->jianyi;
	}
}
?>